package com.mnotice.message.service;

import com.mnotice.common.dto.message.EmailConfig;
import com.mnotice.common.entity.message.Notification;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class EmailService {
    @Resource
    private SystemConfigService systemConfigService;

    public void sendEmail(String html, Notification notification) {
        EmailConfig emailConfig = systemConfigService.getSendEmailConfig();
        send(emailConfig, notification, html);
    }

    private void send(EmailConfig emailConfig, Notification notification, String content) {

    }

}
